<template>
    <el-card class="box-card">
     <template v-for="(item, key, i) in slots" :key="i" v-slot:[key]>
       <span>{{ key }}</span>
       <slot :name="key"></slot>
     </template>
   </el-card>
 </template>
 <script setup lang="ts">
 import { useSlots } from 'vue';
 const slots = useSlots();
 </script>
 